package com.dhcc.bpm.modules.bbs.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.modules.bbs.entity.TopicUser;
import com.dhcc.bpm.modules.bbs.mapper.TopicUserMapper;
import com.dhcc.bpm.modules.bbs.service.ITopicUserService;
import com.dhcc.bpm.modules.bbs.vo.TopicUserVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TopicServiceImpl
 * @Description 论坛板块用户关联表 服务实现类
 *  @Author daina
 * @Date 2020/3/6 15:55
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class TopicUserServiceImpl extends ServiceImpl<TopicUserMapper, TopicUser> implements ITopicUserService {
	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 16:09 2020/3/6
	 * @param page
	 * @param topicUser
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.bbs.vo.TopicUserVO>
	 **/
	@Override
	public IPage<TopicUserVO> selectTopicUserPage(IPage<TopicUserVO> page, TopicUserVO topicUser) {
		return page.setRecords(baseMapper.selectTopicUserPage(page, topicUser));
	}
	/**
	 * @Description 查询板块管理员
	 * @Author daina
	 * @Date 16:09 2020/3/6
	 * @param topicUser
	 * @return java.util.List<com.dhcc.bpm.modules.bbs.entity.TopicUser>
	 **/
	@Override
	public List<TopicUser> listTopicUser(TopicUser topicUser) {
		return baseMapper.listTopicUser(topicUser);
	}

}
